﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace Kaleta.Outcast
{
    public static class Global
    {
        public static class SpriteSheets
        {
            public static SpriteSheet Ship, Bullet;
        }

        public static void Load(ContentManager Content)
        {
            Global.SpriteSheets.Ship = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/Shuttle1"),
                FrameCount = 1,
                FrameWidht = 256,
                FrameHeight = 154
                
            };
            Global.SpriteSheets.Bullet = new SpriteSheet()
            {
                Texture = Content.Load<Texture2D>("Textures/laser_fire0001"),
                FrameCount = 1,
                FrameWidht = 256,
                FrameHeight = 256

            };
        }

        /// <summary>
        /// Specifies how often (in milliseconds) the Update method will be called.
        /// </summary>
        public const float FrameUpdateTime = 16.6f;

        public const float NetworkUpdateTime = 16.6f;

        public const float SimulatedLatency = 0.00f;

        public const float LatencyTestEveryMillisecond = 10000f;
    }

    public class SpriteSheet
    {
        public Texture2D Texture { get; set; }
        public int FrameCount { get; set; }
        public int FrameWidht { get; set; }
        public int FrameHeight { get; set; }
    }
}
